<?php echo validation_errors(); ?>

<?php if(isset($error)) echo "<p>$error</p>"; ?>
<?php echo form_open('gate/register', array('class'=>'reg')); ?>

<h2>Registration</h2>

	E-mail: <br /><?php echo form_input(array('name' => 'email', 'size' => '50'));?> <br />
	Confirm email: <br /><?php echo form_input(array('name' => 'email_conf', 'size' => '50'));?> <br />
	Password: <br /><?php echo form_password(array('name' => 'password', 'size' => '50'));?> <br />
	Confirm password:<br /><?php echo form_password(array('name' => 'password_conf', 'size' => '50'));?> <br />
	What are you: <input type="radio" name="usertype" value="student" <?php echo set_radio('usertype', 'student'); ?> />Student <input type="radio" name="usertype" value="teacher" <?php echo set_radio('usertype', 'teacher'); ?> />Teacher<br /><br />
<?php echo form_submit(array('class' => 'reg', 'value' => 'Register')); echo "         ";?> 
<?php echo form_reset(array('class' => 'reg', 'value' => 'Reset')); ?>
<?php echo form_close(); ?>
